package com.local.admin.service;

import com.local.carousel.pojo.Carousel;
import com.local.carousel.pojo.CarouselDeleteRequestParam;
import com.local.carousel.pojo.CarouselListRequestParam;
import com.local.common.util.PageResultUtil;
import com.local.common.util.ResultUtil;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

public interface CarouselService {

    /**
     * 查询列表
     * @param requestParam
     * @return
     */
    public ResultUtil<PageResultUtil<Carousel>> list(CarouselListRequestParam requestParam);

    /**
     * 通过id查询
     * @param id
     * @return
     */
    public ResultUtil getById(Integer id);

    /**
     * 新增
     * @param carousel
     * @return
     */
    public ResultUtil save(Carousel carousel);

    /**
     * 修改
     * @param carousel
     * @return
     */
    public ResultUtil update(Carousel carousel);

    /**
     * 单个、批量删除
     * @param deleteRequestParam
     * @return
     */
    public ResultUtil delete(CarouselDeleteRequestParam deleteRequestParam);
}
